<%@ page contentType="text/html;charset=UTF-8" %>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="layout" content="main" />
    <title>Configurações-${usuInstance?.login}</title>
  </head>
  <body>
    <div class="nav">
        <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
    </div>
    <div class="body">
      <div class="dialog">
          <h1>Configurações de conta</h1>
      </div>
      <g:if test="${flash.message}">
        <div class="message">${flash.message}</div>
      </g:if>
      <g:hasErrors bean="${usuInstance}">
        <div class="errors">
          <g:renderErrors bean="${usuInstance}" as="list" />
        </div>
      </g:hasErrors>
      <g:form method="post" >
        <g:hiddenField name="id" value="${usuInstance?.id}" />
        <g:hiddenField name="version" value="${usuInstance?.version}" />
        <div class="dialog">
          <table>
            <tbody>
              
              <tr class="prop">
                <td valign="top" class="name">
                  <label for="login"><g:message code="usuario.login.label" default="Login" /></label></td>
                
                <td valign="top" class="value ${hasErrors(bean: usuInstance, field: 'login', 'errors')}">
                  <g:textField name="login" value="${usuInstance?.login}" /></td>
              </tr>

              <tr class="prop">
                <td valign="top" class="name">
                  <label for="senha"><g:message code="usuario.senha.label" default="Senha" /></label></td>
               
                <td valign="top" class="value ${hasErrors(bean: usuInstance, field: 'senha', 'errors')}">
                  <g:passwordField name="senha" value="${usuInstance?.senha}" /></td>
              </tr>
            
              <tr class="prop">
                <td valign="top" class="name">
                  <label for="senha"><g:message code="conta.confirmaSenha.label" default="Confirmação da Senha" /></label></td>
               
                <td valign="top">
                  <input type="password" id="confirmacao" name="confirmacao" /></td>
              </tr>
            </tbody>
          </table>
        </div>
        <div class="buttons">
          <span class="button"><g:actionSubmit class="save" action="alterar" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
          <span class="button"><g:actionSubmit class="cancel" action="show" value="${message(code: 'default.button.cancel.label', default: 'Cancel')}" /></span>
        </div>
      </g:form>
    </div>
  </body>
</html>
